/* Layout */
import Layout from "@/views/layout/Index";
import Classical from "@/views/classical/Index";
import National from "@/views/national/Index";
import Jazz from "@/views/jazz/Index";
import Video from "@/views/videos/Index";
import AudioBooks from "@/views/audioBooks/Index";
import Home from "@/views/homepage/Index";
import NationalArea from "@/views/national/area/Index";
import MyMusic from "@/views/admin/myMusic/Index";
import Like from "@/views/admin/myMusic/like/Index";

/**
 * 404
 */
export const pageError = {
  path: "*",
  name: "404",
  meta: {
    title: "router.pageNotExist", //404-您访问的页面不存在
  },
  component: () => import(/* webpackChunkName: 'error' */ "@/views/error/404"),
};

/**
 * no-network
 */
export const networkError = {
  path: "/networkError",
  name: "networkError",
  meta: {
    title: "router.networkException", //网络异常
  },
  component: () =>
    import(/* webpackChunkName: 'error' */ "@/views/error/no-network"),
};

/**
 * 主路由
 */
export const appRouter = [
  {
    path: "/",
    redirect: {
      name: "home",
    },
  },
  {
    path: "/home",
    redirect: {
      name: "home",
    },
    meta: {
      title: "router.home", //首页
      url: "/home",
      keepAlive: true,
    },
    component: Home,
    children: [
      {
        path: "/home",
        meta: {
          title: "router.home", //首页
          keepAlive: true,
        },
        name: "home",
        component: () =>
          import(/* webpackChunkName: 'Home' */ "@/views/homepage/home/Index"),
      },
      {
        path: "album",
        meta: {
          title: "router.latestAlbum", //最新专辑
          keepAlive: true,
        },
        name: "homeAlbum",
        component: () =>
          import(/* webpackChunkName: 'Home' */ "@/views/homepage/album/Index"),
      },
      {
        path: "artist",
        meta: {
          title: "router.artist", //艺术家
          keepAlive: true,
        },
        name: "homeArtist",
        component: () =>
          import(
            /* webpackChunkName: 'Home' */ "@/views/homepage/artist/Index"
          ),
      },
      {
        path: "sort",
        meta: {
          title: "router.classify", //分类
          keepAlive: true,
        },
        name: "homeSort",
        component: () =>
          import(/* webpackChunkName: 'Home' */ "@/views/homepage/sort/Index"),
      },
    ],
  },
  {
    path: "/",
    meta: {
      title: "router.home", //首页
      url: "/",
      keepAlive: true,
    },
    redirect: {
      name: "home",
    },
    component: Layout,
    children: [
      {
        path: "/album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //专辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "albumDetail",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/detail/album/Index"),
      },
      {
        path: "/m-album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //m-辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "mAlbumDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Layout' */ "@/views/detail/album/m-Index"
          ),
      },
      // {
      //   path: "audio-book",
      //   redirect: "/audio-book/all",
      //   meta: {
      //     title: "router.audioBook", //有声读物
      //     keepAlive: true,
      //   },
      //   name: "audioBook",
      //   children: [

      //   ],
      // },
      {
        path: "music-score",
        meta: {
          title: "router.score", //乐谱
          keepAlive: true,
        },
        name: "musicScore",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/musicScore/Index"),
      },
      {
        path: "theater",
        redirect: "/theater/0/0/0",
        meta: {
          title: "router.theater", //剧院
          keepAlive: true,
        },
        name: "theater",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/theater/Index"),
      },
      {
        path: "theater/:type/:theater/:organization",
        meta: {
          title: "router.theater", //视频
          keepAlive: true,
        },
        name: "theaters",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/theater/Index"),
      },
      {
        path: "theater-detail/:id",
        meta: {
          title: "router.theaterDetails", //视频详情
          url: "/theater/0/0/0",
          keepAlive: false,
        },
        name: "theaterDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Layout' */ "@/views/theater/detail/Index"
          ),
      },
      {
        path: "K+Live",
        redirect: "/K+Live/0",
        meta: {
          title: "router.KLive", //K+现场
          keepAlive: true,
        },
        name: "KLive",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/KLive/Index"),
      },
      {
        path: "K+Live/:id",
        meta: {
          title: "router.KLive", //K+现场导航列表
          keepAlive: true,
        },
        name: "KLives",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/KLive/Index"),
      },
      {
        path: "KLive-detail/:id",
        meta: {
          title: "router.KLiveDetails", //视频详情
          url: "/K+Live/0",
          keepAlive: false,
        },
        name: "KLiveDetail",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/KLive/detail/Index"),
      },
      {
        path: "connoisseur",
        meta: {
          title: "router.connoisseur", //艺术鉴赏
          keepAlive: true,
        },
        name: "connoisseur",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/connoisseur/Index"),
      },
      {
        path: "/myMusic",
        redirect: "/myMusic/like/single",
        meta: {
          title: "router.myMusic", //我的音乐
          url: "/myMusic/like/single",
          keepAlive: false,
        },
        name: "myMusic",
        component: MyMusic,
        children: [
          {
            path: "like",
            redirect: "/myMusic/like/single",
            meta: {
              title: "router.myFavorites", //我喜欢
              url: "/myMusic/like/single",
              keepAlive: false,
            },
            name: "myMusicLike",
            component: Like,
            children: [
              {
                path: "single",
                meta: {
                  title: "router.single", //单曲
                  keepAlive: false,
                  active: "/myMusic/like",
                  isPlayer: true,
                },
                name: "likeSingle",
                component: () =>
                  import(
                    /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/like/detail/Single"
                  ),
              },
              {
                path: "album",
                meta: {
                  title: "router.album", //专辑
                  keepAlive: false,
                  active: "/myMusic/like",
                },
                name: "likeAlbum",
                component: () =>
                  import(
                    /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/like/detail/Album"
                  ),
              },
              {
                path: "song-list",
                meta: {
                  title: "router.songList", //单曲
                  keepAlive: false,
                  active: "/myMusic/like",
                },
                name: "likeSongList",
                component: () =>
                  import(
                    /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/like/detail/SongList"
                  ),
              },
              {
                path: "video",
                meta: {
                  title: "router.video", //视频
                  keepAlive: false,
                  active: "/myMusic/like",
                },
                name: "likeVideo",
                component: () =>
                  import(
                    /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/like/detail/Video"
                  ),
              },
            ],
          },
          {
            path: "single-dir",
            meta: {
              title: "router.singleClip", //单曲夹
              keepAlive: false,
              isPlayer: true,
            },
            name: "myMusicSingleDir",
            component: () =>
              import(
                /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/singleDir/Index"
              ),
          },
          {
            path: "m-single-dir",
            meta: {
              title: "router.singleClip", //单曲夹
              keepAlive: false,
            },
            name: "mMyMusicSingleDir",
            component: () =>
              import(
                /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/singleDir/m-Index"
              ),
          },
          {
            path: "m-single-dir-detail/:pageNum/:pageSize/:id",
            meta: {
              title: "router.singleClip", //单曲夹
              keepAlive: false,
              active: "/myMusic/m-single-dir",
              isPlayer: true,
            },
            name: "mMyMusicSingleDirDetail",
            component: () =>
              import(
                /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/singleDir/detail/m-Index"
              ),
          },
          {
            path: "record-dir",
            meta: {
              title: "router.recordClip", //唱片夹
              keepAlive: false,
              isPlayer: true,
            },
            name: "myMusicRecordDir",
            component: () =>
              import(
                /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/recordDir/Index"
              ),
          },
          {
            path: "m-record-dir",
            meta: {
              title: "router.recordClip", // m-唱片夹
              keepAlive: false,
            },
            name: "mMyMusicRecordDir",
            component: () =>
              import(
                /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/recordDir/m-Index"
              ),
          },
          {
            path: "m-record-dir-detail/:pageNum/:pageSize/:id",
            meta: {
              title: "router.recordClip", // m-唱片夹详情
              keepAlive: false,
              active: "/myMusic/m-record-dir",
              isPlayer: true,
            },
            name: "mMyMusicRecordDirDetail",
            component: () =>
              import(
                /* webpackChunkName: 'myMusic' */ "@/views/admin/myMusic/recordDir/detail/m-Index"
              ),
          },
        ],
      },
    ],
  },
  {
    path: "/classical",
    redirect: "/classical/album",
    meta: {
      title: "router.classicalMusic", //古典音乐
      url: "/classical/album",
      keepAlive: true,
    },
    component: Classical,
    children: [
      {
        path: "album",
        meta: {
          title: "router.boutiqueAlbum", //精品专辑
          keepAlive: true,
          // requireAuth: true, //需要登录权限
        },
        name: "classicalAlbum",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/album/Index"
          ),
      },
      {
        path: "/album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //专辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "classicalAlbumDetail",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/detail/album/Index"),
      },
      {
        path: "/m-album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //m-辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "mClassicalAlbumDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Layout' */ "@/views/detail/album/m-Index"
          ),
      },
      {
        path: "song-list",
        meta: {
          title: "router.songList", //歌单
          keepAlive: false,
        },
        name: "classicalSongList",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/songList/Index"
          ),
      },
      {
        path: "song-list-detail/:id",
        meta: {
          title: "router.songListDetails", //歌单详情
          url: "/classical/song-list",
          keepAlive: false,
        },
        name: "classicalSongListDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/songList/detail/Index"
          ),
      },
      {
        path: "m-song-list",
        meta: {
          title: "router.songList", //M-歌单
          keepAlive: false,
        },
        name: "classicalMSongDirList",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/songList/m-Index"
          ),
      },
      {
        path: "m-song-list-detail/:id",
        meta: {
          title: "router.songListDetails", //M-歌单详情
          url: "/classical/m-song-list",
          keepAlive: false,
        },
        name: "classicalMSongListDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/songList/detail/m-Index"
          ),
      },
      {
        path: "artist",
        meta: {
          title: "router.artist", //艺术家
          keepAlive: true,
          sort: true, //切换中英文重新排序
        },
        name: "classicalArtist",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/artist/Index"
          ),
      },
      {
        path: "artist-detail/:personId/:personTypeId",
        meta: {
          title: "router.artistDetails", //艺术家详情
          url: "/classical/artist",
          keepAlive: false,
        },
        name: "classicalArtistDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/artist/detail/Index"
          ),
      },
      {
        path: "m-artist-detail/:personId/:personTypeId",
        meta: {
          title: "router.artistDetails", //移动端艺术家详情
          url: "/classical/artist",
          keepAlive: false,
        },
        name: "classicalMArtistDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/artist/detail/m-Index"
          ),
      },
      {
        path: "work/:personId/:personTypeId/:workId",
        meta: {
          title: "router.workDetails", //作品详情
          url: "/classical/artist",
          keepAlive: false,
        },
        name: "classicalWorkDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/artist/detail/workDetail"
          ),
      },
      {
        path: "sort",
        meta: {
          title: "router.classify", //分类
          keepAlive: true,
        },
        name: "classicalSort",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/sort/Index"
          ),
      },
      {
        path: "sort-list/:id",
        meta: {
          title: "router.classifyDetails", //分类详情
          url: "/classical/sort",
          keepAlive: false,
        },
        name: "classicalSortList",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/sort/detail/Index"
          ),
      },
      {
        path: "brand",
        meta: {
          title: "router.brand", //厂牌
          keepAlive: true,
        },
        name: "classicalBrand",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/brand/Index"
          ),
      },
      {
        path: "brand-detail/:id",
        meta: {
          title: "router.brandDetails", //厂牌详情
          url: "/classical/brand",
          keepAlive: false,
        },
        name: "classicalBrandDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/brand/detail/Index"
          ),
      },
      {
        path: "resource",
        meta: {
          title: "router.resource", //资源
          keepAlive: true,
        },
        name: "classicalResource",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/resource/Index"
          ),
      },
      {
        path: "search",
        meta: {
          title: "router.search", //搜索
          keepAlive: true,
        },
        name: "classicalSearch",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/classical/search/Index"
          ),
      },
      {
        path: "searching-result/:sort",
        meta: {
          title: "router.retrievedResult", //检索结果
          keepAlive: false,
        },
        name: "classicalSearchResult",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/detail/search/Index"
          ),
      },
      {
        path: "search-result/:keywords",
        meta: {
          title: "router.searchResult", //搜索结果
          keepAlive: false,
        },
        name: "classicalSearchSummary",
        component: () =>
          import(
            /* webpackChunkName: 'Classical' */ "@/views/detail/search/Index"
          ),
      },
    ],
  },
  {
    path: "/national",
    redirect: "/national/album",
    meta: {
      title: "router.worldNation", //世界民族
      url: "/national/album",
      keepAlive: true,
    },
    component: National,
    children: [
      {
        path: "album",
        meta: {
          title: "router.boutiqueAlbum", //精品专辑
          keepAlive: true,
        },
        name: "nationalAlbum",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/album/Index"
          ),
      },
      {
        path: "/album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //专辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "nationalAlbumDetail",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/detail/album/Index"),
      },
      {
        path: "/m-album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //m-辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "mNationalAlbumDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Layout' */ "@/views/detail/album/m-Index"
          ),
      },
      {
        path: "song-list",
        meta: {
          title: "router.songList", //歌单
          keepAlive: false,
        },
        name: "nationalSongList",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/songList/Index"
          ),
      },
      {
        path: "song-list-detail/:id",
        meta: {
          title: "router.songListDetails", //歌单详情
          url: "/national/songList",
          keepAlive: false,
        },
        name: "nationalSongListDetail",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/songList/detail/Index"
          ),
      },
      {
        path: "m-song-list",
        meta: {
          title: "router.songList", //M-歌单
          keepAlive: false,
        },
        name: "nationalMSongDirList",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/songList/m-Index"
          ),
      },
      {
        path: "m-song-list-detail/:id",
        meta: {
          title: "router.songListDetails", //M-歌单详情
          url: "/national/m-song-list",
          keepAlive: false,
        },
        name: "nationalMSongListDetail",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/songList/detail/m-Index"
          ),
      },
      {
        path: "artist",
        meta: {
          title: "router.artist", //艺术家
          keepAlive: true,
          sort: true,
        },
        name: "nationalArtist",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/artist/Index"
          ),
      },
      {
        path: "artist-detail/:personId/:personTypeId",
        meta: {
          title: "router.artistDetails", //艺术家详情
          url: "/national/artist",
          keepAlive: false,
        },
        name: "nationalArtistDetail",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/artist/detail/Index"
          ),
      },
      {
        path: "m-artist-detail/:personId/:personTypeId",
        meta: {
          title: "router.artistDetails", //移动端艺术家详情
          url: "/national/artist",
          keepAlive: false,
        },
        name: "nationalMArtistDetail",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/artist/detail/m-Index"
          ),
      },
      {
        path: "work/:personId/:personTypeId/:workId",
        meta: {
          title: "router.workDetails", //作品详情
          url: "/national/artist",
          keepAlive: false,
        },
        name: "nationalWorkDetail",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/artist/detail/workDetail"
          ),
      },
      {
        path: "culture",
        meta: {
          title: "router.culture", //文化
          keepAlive: true,
          sort: true,
        },
        name: "nationalCulture",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/culture/Index"
          ),
      },
      {
        path: "culture-list/:code",
        meta: {
          title: "router.culturalAlbum", //文化专辑
          url: "/national/culture",
          keepAlive: false,
        },
        name: "nationalCultureList",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/culture/detail/Index"
          ),
      },
      {
        path: "area",
        redirect: "/national/area/world",
        meta: {
          title: "router.region", //地区
          url: "/national/area/world",
          keepAlive: true,
        },
        name: "nationalArea",
        component: NationalArea,
        children: [
          {
            path: "world",
            meta: {
              title: "router.browseByRegion", //按区域浏览
              // url: "/national/area",
              keepAlive: true,
            },
            name: "nationalAreaWorld",
            component: () =>
              import(
                /* webpackChunkName: 'National' */ "@/views/national/area/detail/world"
              ),
          },
          {
            path: "en",
            meta: {
              title: "router.browseByLetter", //按字母浏览
              // url: "/national/area",
              keepAlive: true,
              sort: true,
            },
            name: "nationalAreaEn",
            component: () =>
              import(
                /* webpackChunkName: 'National' */ "@/views/national/area/detail/en"
              ),
          },
        ],
      },
      {
        path: "area-list/:sort/:id",
        meta: {
          title: "router.regionList", //地区列表
          url: "/national/area/world",
          keepAlive: false,
        },
        name: "nationalAreaList",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/area/detail/Index"
          ),
      },
      {
        path: "brand",
        meta: {
          title: "router.brand", //厂牌
          keepAlive: true,
        },
        name: "nationalBrand",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/brand/Index"
          ),
      },
      {
        path: "brand-detail/:id",
        meta: {
          title: "router.brandDetails", //厂牌详情
          url: "/national/brand",
          keepAlive: false,
        },
        name: "nationalBrandDetail",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/brand/detail/Index"
          ),
      },
      {
        path: "search",
        meta: {
          title: "router.search", //搜索
          keepAlive: true,
        },
        name: "nationalSearch",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/national/search/Index"
          ),
      },
      {
        path: "searching-result/:sort",
        meta: {
          title: "router.retrievedResult", //检索结果
          keepAlive: false,
        },
        name: "nationalSearchResult",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/detail/search/Index"
          ),
      },
      {
        path: "search-result/:keywords",
        meta: {
          title: "router.searchResult", //搜索结果
          keepAlive: false,
        },
        name: "nationalSearchSummary",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/detail/search/Index"
          ),
      },
    ],
  },
  {
    path: "/jazz",
    redirect: "/jazz/album",
    meta: {
      title: "router.jazz", //爵士
      url: "/jazz/album",
      keepAlive: true,
    },
    component: Jazz,
    children: [
      {
        path: "album",
        meta: {
          title: "router.boutiqueAlbum", //精品专辑
          keepAlive: true,
          // requireAuth: true, //需要登录权限
        },
        name: "jazzAlbum",
        component: () =>
          import(/* webpackChunkName: 'Jazz' */ "@/views/jazz/album/Index"),
      },
      {
        path: "/album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //专辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "jazzAlbumDetail",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/detail/album/Index"),
      },
      {
        path: "/m-album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //m-辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "mJazzAlbumDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Layout' */ "@/views/detail/album/m-Index"
          ),
      },
      {
        path: "song-list",
        meta: {
          title: "router.songList", //歌单
          keepAlive: false,
        },
        name: "jazzSongList",
        component: () =>
          import(/* webpackChunkName: 'Jazz' */ "@/views/jazz/songList/Index"),
      },
      {
        path: "song-list-detail/:id",
        meta: {
          title: "router.songListDetails", //歌单详情
          url: "/jazz/song-list",
          keepAlive: false,
        },
        name: "jazzSongListDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Jazz' */ "@/views/jazz/songList/detail/Index"
          ),
      },
      {
        path: "m-song-list",
        meta: {
          title: "router.songList", //M-歌单
          keepAlive: false,
        },
        name: "jazzMSongDirList",
        component: () =>
          import(
            /* webpackChunkName: 'Jazz' */ "@/views/jazz/songList/m-Index"
          ),
      },
      {
        path: "m-song-list-detail/:id",
        meta: {
          title: "router.songListDetails", //M-歌单详情
          url: "/jazz/m-song-list",
          keepAlive: false,
        },
        name: "jazzMSongListDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Jazz' */ "@/views/jazz/songList/detail/m-Index"
          ),
      },
      {
        path: "artist",
        meta: {
          title: "router.artist", //艺术家
          keepAlive: true,
          sort: true,
        },
        name: "jazzArtist",
        component: () =>
          import(/* webpackChunkName: 'Jazz' */ "@/views/jazz/artist/Index"),
      },
      {
        path: "artist-detail/:personId/:personTypeId",
        meta: {
          title: "router.artistDetails", //艺术家详情
          url: "/jazz/artist",
          keepAlive: false,
        },
        name: "jazzArtistDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Jazz' */ "@/views/jazz/artist/detail/Index"
          ),
      },
      {
        path: "m-artist-detail/:personId/:personTypeId",
        meta: {
          title: "router.artistDetails", //移动端艺术家详情
          url: "/jazz/artist",
          keepAlive: false,
        },
        name: "jazzMArtistDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Jazz' */ "@/views/jazz/artist/detail/m-Index"
          ),
      },
      {
        path: "work/:personId/:personTypeId/:workId",
        meta: {
          title: "router.workDetails", //作品详情
          url: "/jazz/artist",
          keepAlive: false,
        },
        name: "jazzWorkDetail",
        component: () =>
          import(
            /* webpackChunkName: 'National' */ "@/views/jazz/artist/detail/workDetail"
          ),
      },
      {
        path: "sort",
        meta: {
          title: "router.classify", //分类
          keepAlive: true,
        },
        name: "jazzSort",
        component: () =>
          import(/* webpackChunkName: 'Jazz' */ "@/views/jazz/sort/Index"),
      },
      {
        path: "sort-list/:id",
        meta: {
          title: "router.classifyDetails", //分类详情
          url: "/jazz/sort",
          keepAlive: false,
        },
        name: "jazzSortList",
        component: () =>
          import(
            /* webpackChunkName: 'Jazz' */ "@/views/jazz/sort/detail/Index"
          ),
      },
      {
        path: "brand",
        meta: {
          title: "router.brand", //厂牌
          keepAlive: true,
        },
        name: "jazzBrand",
        component: () =>
          import(/* webpackChunkName: 'Jazz' */ "@/views/jazz/brand/Index"),
      },
      {
        path: "brand-detail/:id",
        meta: {
          title: "router.brandDetails", //厂牌详情
          url: "/jazz/brand",
          keepAlive: false,
        },
        name: "jazzBrandDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Jazz' */ "@/views/jazz/brand/detail/Index"
          ),
      },
      {
        path: "search",
        meta: {
          title: "router.search", //搜索
          keepAlive: true,
        },
        name: "jazzSearch",
        component: () =>
          import(/* webpackChunkName: 'Jazz' */ "@/views/jazz/search/Index"),
      },
      {
        path: "searching-result/:sort",
        meta: {
          title: "router.retrievedResult", //检索结果
          keepAlive: false,
        },
        name: "jazzSearchResult",
        component: () =>
          import(/* webpackChunkName: 'Jazz' */ "@/views/detail/search/Index"),
      },
      {
        path: "search-result/:keywords",
        meta: {
          title: "router.searchResult", //搜索结果
          keepAlive: false,
        },
        name: "jazzSearchSummary",
        component: () =>
          import(/* webpackChunkName: 'Jazz' */ "@/views/detail/search/Index"),
      },
    ],
  },
  {
    path: "/video",
    redirect: "/video/all",
    meta: {
      title: "router.video", //视频
      url: "/video/all",
      keepAlive: true,
    },
    name: "video",
    component: Video,
    children: [
      {
        path: "/video/:id",
        meta: {
          title: "router.video", //视频
          keepAlive: true,
        },
        name: "videos",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/videos/video/Index"),
      },
      {
        path: "/video-detail/:id",
        meta: {
          title: "router.videoDetails", //视频详情
          keepAlive: false,
        },
        name: "videoDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Layout' */ "@/views/videos/video/detail/Index"
          ),
      },
      {
        path: "/m-video-detail/:id",
        meta: {
          title: "router.videoDetails", //视频详情
          keepAlive: false,
        },
        name: "mVideoDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Layout' */ "@/views/videos/video/detail/m-Index"
          ),
      },
    ],
  },
  {
    path: "/audio-book",
    redirect: "/audio-book/all",
    meta: {
      title: "router.audioBook", //有声读物
      url: "/audio-book/all",
      keepAlive: true,
    },
    name: "audioBook",
    component: AudioBooks,
    children: [
      {
        path: "/audio-book/:id",
        meta: {
          title: "router.audioBook", //有声读物
          keepAlive: true,
        },
        name: "audioBooks",
        component: () =>
          import(
            /* webpackChunkName: 'Layout' */ "@/views/audioBooks/audioBook/Index"
          ),
      },
      {
        path: "/album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //专辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "audioBooksAlbumDetail",
        component: () =>
          import(/* webpackChunkName: 'Layout' */ "@/views/detail/album/Index"),
      },
      {
        path: "/m-album-detail/:sort/:id",
        meta: {
          title: "router.albumDetails", //m-辑详情
          keepAlive: false,
          isPlayer: true,
        },
        name: "mAudioBooksAlbumDetail",
        component: () =>
          import(
            /* webpackChunkName: 'Layout' */ "@/views/detail/album/m-Index"
          ),
      },
    ],
  },
];
// ...loginRouter,
export const routes = [pageError, networkError, ...appRouter];
